package com.rc.saas.tenant.service.member.gain;

import com.rc.saas.tenant.mapper.member.RcMemberGainRecordMapper;
import com.rc.saas.tenant.model.member.RcMemberGainRecord;
import com.rc.saas.tenant.model.member.RcMemberGainRecordExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RcMemberGainRecordServiceImpl implements RcMemberGainRecordService{

    @Autowired
    private RcMemberGainRecordMapper memberGainRecordMapper;

    @Override
    public RcMemberGainRecordMapper getMapper() {
        return memberGainRecordMapper;
    }

    public List listMemberGain(Long memberId) {
        RcMemberGainRecordExample example = new RcMemberGainRecordExample();
        example.createCriteria().andMemberIdEqualTo(memberId);
        List<RcMemberGainRecord> list = memberGainRecordMapper.selectByExample(example);
        return list;
    }
}
